package org.xenon.vote.model.pojo.po;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 验证码的校验对象
 */
public class Token {
    /**
     * 验证码的标识
     */
    @NotNull(message = "hash.null")
    @NotBlank(message = "hash.blank")
    private String session;

    /**
     * 验证码的文字
     */
    @NotNull(message = "text.null")
    @NotBlank(message = "text.blank")
    private String text;

    public Token(String session, String text) {
        this.session = session;
        this.text = text;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
